﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace pc_system.Model
{
    class TypeChecker
    {
        public bool IsInt(string s)
        {
            Int64 t;
            return (Int64.TryParse(s,out t) && t > 0);
        }

        public bool IsReal(string s)
        {
            float t;
            return float.TryParse(s, out t) && t > 0;
        }
        
    }
}
